package com.cwz.datasource.dynamic.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: w-demo
 * @description: druid 配置文件类
 * @author: Wen
 **/
@Data
@NoArgsConstructor
@Component
@ConfigurationProperties("spring.datasource.druid")
public class DefaultDataSourceProperties {
	private String url;
	private String username;
	private String password;
	private int initialSize;
	private int minIdle;
	private int maxActive;
	private int maxWait;
	private int connectTimeout;
	private int socketTimeout;
	private int timeBetweenEvictionRunsMillis;
	private int minEvictableIdleTimeMillis;
	private int maxEvictableIdleTimeMillis;
	private String validationQuery;
	private boolean testWhileIdle;
	private boolean testOnBorrow;
	private boolean testOnReturn;
	private boolean poolPreparedStatements;
	private int maxPoolPreparedStatementPerConnectionSize;
	private String filters;
}
